<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <style>
  th {
    position: sticky;
    background-color: black;
    color: white;
    top: 0;
  }

  </style>
</head>
<body>
<table>
  <thead>
  <tr> <th>Name</th> <th>Favorite Color</th> </tr>
  </thead>
  <tbody>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  <tr> <td>Bob</td> <td>Yellow</td> </tr>
  <tr> <td>Michelle</td> <td>Purple</td> </tr>
  </tbody>
</table>

</body>
</html>
